<template>
    <div>
        <Header></Header> 
        <router-view></router-view>
        <!-- 控制路由的显示与隐藏 -->
        <Footer v-show="$route.meta.show"></Footer>
    </div>

</template>

<script>
import Header from "./components/Header/index"
import Footer from "./components/Footer/index"
export default {
    name:"APP",
    components:{ Header, Footer},
    mounted(){
        // 派发action
        this.$store.dispatch("categoryList");
    }
}
</script>

<style>

</style>